home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / tests / display.dia.ref < prev    next >
Text File  |  1999-09-16  |  11KB  |  283 lines

  1.  
  2. //FICHIER_DE_TEST ADD NAME=DISPLAY.TST,SSI=0
  3.  
  4. //
  5.  
  6. z=poly(0,'z')
  7.  z  =
  8.  
  9.     z   
  10.  
  11. //lines(20,60)
  12.  
  13. format('v',10)
  14.  
  15. num=[ (((((1)*z-2.6533333)*z+2.6887936)*z-1.2916784)*z+0.2911572)*...
  16.      z-0.0243497
  17.       (((((1)*z-2.6533333)*z+2.6887936)*z-1.2916784)*z+0.2911572)*...
  18.      z-0.0243497
  19.      (((1)*z )*z )*z+1
  20.      0]
  21.  num  =
  22.  
  23. !                                      2            3            4     !
  24. ! - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z      !
  25. !              5                                                       !
  26. !           + z                                                        !
  27. !                                                                      !
  28. !                                      2            3            4     !
  29. ! - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z      !
  30. !              5                                                       !
  31. !           + z                                                        !
  32. !                                                                      !
  33. !        3                                                             !
  34. !   1 + z                                                              !
  35. !                                                                      !
  36. !   0                                                                  !
  37.  
  38. den = [ ((((1)*z-1.536926)*z+0.8067352)*z-0.1682810)*z+0.0113508
  39. ((((1)*z-1.536926)*z+0.8067352)*z-0.1682810)*z+0.0113508
  40. ((1)*z )*z
  41. 1]
  42.  den  =
  43.  
  44. !                                     2           3   4 !
  45. !   0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z  !
  46. !                                                       !
  47. !                                     2           3   4 !
  48. !   0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z  !
  49. !                                                       !
  50. !    2                                                  !
  51. !   z                                                   !
  52. !                                                       !
  53. !   1                                                   !
  54.  
  55. num',den'
  56.  ans  =
  57.  
  58.  
  59.          column 1
  60.  
  61. !                                      2            3            4     !
  62. ! - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z      !
  63. !              5                                                       !
  64. !           + z                                                        !
  65.  
  66.          column 2
  67.  
  68. !                                      2            3            4     !
  69. ! - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z      !
  70. !              5                                                       !
  71. !           + z                                                        !
  72.  
  73.          column 3 to 4
  74.  
  75. !        3      !
  76. !   1 + z     0 !
  77.  ans  =
  78.  
  79.  
  80.          column 1
  81.  
  82. !                                     2           3   4 !
  83. !   0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z  !
  84.  
  85.          column 2 to 4
  86.  
  87. !                                     2           3   4     2       !
  88. !   0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z     z     1  !
  89.  
  90. [num;den]
  91.  ans  =
  92.  
  93. !                                      2            3            4     !
  94. ! - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z      !
  95. !              5                                                       !
  96. !           + z                                                        !
  97. !                                                                      !
  98. !                                      2            3            4     !
  99. ! - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z      !
  100. !              5                                                       !
  101. !           + z                                                        !
  102. !                                                                      !
  103. !        3                                                             !
  104. !   1 + z                                                              !
  105. !                                                                      !
  106. !   0                                                                  !
  107. !                                                                      !
  108. !                                     2           3   4                !
  109. !   0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z                 !
  110. !                                                                      !
  111. !                                     2           3   4                !
  112. !   0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z                 !
  113. !                                                                      !
  114. !    2                                                                 !
  115. !   z                                                                  !
  116. !                                                                      !
  117. !   1                                                                  !
  118.  
  119. [num den]
  120.  ans  =
  121.  
  122.  
  123.          column 1
  124.  
  125. !                                      2            3            4     !
  126. ! - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z      !
  127. !              5                                                       !
  128. !           + z                                                        !
  129. !                                                                      !
  130. !                                      2            3            4     !
  131. ! - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z      !
  132. !              5                                                       !
  133. !           + z                                                        !
  134. !                                                                      !
  135. !        3                                                             !
  136. !   1 + z                                                              !
  137. !                                                                      !
  138. !   0                                                                  !
  139.  
  140.          column 2
  141.  
  142. !                                     2           3   4 !
  143. !   0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z  !
  144. !                                                       !
  145. !                                     2           3   4 !
  146. !   0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z  !
  147. !                                                       !
  148. !    2                                                  !
  149. !   z                                                   !
  150. !                                                       !
  151. !   1                                                   !
  152.  
  153. r=num./den
  154.  r  =
  155.  
  156. !                                      2            3            4     !
  157. ! - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z      !
  158. !         5                                                            !
  159. !      + z                                                             !
  160. !   ------------------------------------------------------------------ !
  161. !                                            2           3   4         !
  162. !          0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z          !
  163. !                                                                      !
  164. !                                      2            3            4     !
  165. ! - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z      !
  166. !         5                                                            !
  167. !      + z                                                             !
  168. !   ------------------------------------------------------------------ !
  169. !                                            2           3   4         !
  170. !          0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z          !
  171. !                                                                      !
  172. !        3                                                             !
  173. !   1 + z                                                              !
  174. !   -----                                                              !
  175. !      2                                                               !
  176. !     z                                                                !
  177. !                                                                      !
  178. !   0                                                                  !
  179. !   -                                                                  !
  180. !   1                                                                  !
  181.  
  182. r'
  183.  ans  =
  184.  
  185.  
  186.          column 1
  187.  
  188. !                                      2            3            4     !
  189. ! - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z      !
  190. !         5                                                            !
  191. !      + z                                                             !
  192. !   ------------------------------------------------------------------ !
  193. !                                            2           3   4         !
  194. !          0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z          !
  195.  
  196.          column 2
  197.  
  198. !                                      2            3            4     !
  199. ! - 0.0243497 + 0.2911572z - 1.2916784z + 2.6887936z - 2.6533333z      !
  200. !         5                                                            !
  201. !      + z                                                             !
  202. !   ------------------------------------------------------------------ !
  203. !                                            2           3   4         !
  204. !          0.0113508 - 0.168281z + 0.8067352z - 1.536926z + z          !
  205.  
  206.          column 3 to 4
  207.  
  208. !        3       !
  209. !   1 + z     0  !
  210. !   -----     -  !
  211. !      2         !
  212. !     z       1  !
  213.  
  214. //
  215.  
  216. digits='abcdefghijklmnopqrstuvwxyz'
  217.  digits  =
  218.  
  219.  abcdefghijklmnopqrstuvwxyz   
  220.  
  221. numbers='1234567890'
  222.  numbers  =
  223.  
  224.  1234567890   
  225.  
  226. majuscules='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  227.  majuscules  =
  228.  
  229.  ABCDEFGHIJKLMNOPQRSTUVWXYZ   
  230.  
  231. symbols=',./;''[] \ =-!\$%^&*()_+~:""[]| @'
  232.  symbols  =
  233.  
  234.  ,./;'[] \ =-!\$%^&*()_+~:"[]| @   
  235.  
  236. [numbers;digits]
  237.  ans  =
  238.  
  239. !1234567890                  !
  240. !                            !
  241. !abcdefghijklmnopqrstuvwxyz  !
  242.  
  243. [numbers digits;digits numbers]
  244.  ans  =
  245.  
  246. !1234567890                  abcdefghijklmnopqrstuvwxyz  !
  247. !                                                        !
  248. !abcdefghijklmnopqrstuvwxyz  1234567890                  !
  249.  
  250. [numbers digits+digits+digits]
  251.  ans  =
  252.  
  253.  
  254.          column 1
  255.  
  256. !1234567890  !
  257.  
  258.          column 2
  259.  
  260. !abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqr!
  261. !     stuvwxyz                                                         !
  262.  
  263. ans';
  264.  
  265. [ans ans]
  266.  ans  =
  267.  
  268.  
  269.          column 1
  270.  
  271. !1234567890                                                            !
  272. !                                                                      !
  273. !abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqr!
  274. !     stuvwxyz                                                         !
  275.  
  276.          column 2
  277.  
  278. !1234567890                                                            !
  279. !                                                                      !
  280. !abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqr!
  281. !     stuvwxyz                                                         !
  282.  
  283.